import App from './App'
import uView from '@/uni_modules/uview-ui'
import { navTo } from '@/utils/index'
import share from '@/mixins/share'
// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false
App.mpType = 'app'
Vue.prototype.$navTo = navTo
Vue.use(uView)
Vue.mixin(share)
const app = new Vue({
    ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  app.prototype.$navTo = navTo
  app.use(uView)
  app.mixin(share)
  return {
    app
  }
}
// #endif